package org.cigo.fworld.types;

import java.util.Date;

public class Project implements CigoItemType {
	private String name;
	private Date createTime;
	private Date lastModifyTime;
	private int type;
	private int priority;
	private boolean isNotify;
	private Group<ContactEntry> participants;
	private Group<PaymentEntry> payments;
	
	/**
	 * 构造函数，默认当前时间为创建时间
	 */
	public Project(){
		this.createTime = new Date();
		participants = new Group<ContactEntry>();
		payments = new Group<PaymentEntry>();
	}
	
	/**
	 * 获取名称
	 * @return
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * 设置名称
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	 * 获取创建时间
	 * @return
	 */
	public Date getCreateTime() {
		return createTime;
	}
	
	/**
	 * 设置创建时间
	 * @param createTime
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	/**
	 * 获取最近修改时间
	 * @return
	 */
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	
	/**
	 * 设置最近修改时间
	 * @param lastModifyTime
	 */
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}

	/**
	 * 获取类型
	 * @return
	 */
	public int getType() {
		return type;
	}

	/**
	 * 设置类型
	 * @param type
	 */
	public void setType(int type) {
		this.type = type;
	}

	/**
	 * 获取是否通知
	 * @return
	 */
	public boolean isNotify() {
		return isNotify;
	}

	/**
	 * 设置通知
	 * @param isNotify
	 */
	public void setNotify(boolean isNotify) {
		this.isNotify = isNotify;
	}

	/**
	 * 获取参与用户列表
	 * @return
	 */
	public Group<ContactEntry> getParticipants() {
		return participants;
	}

	/**
	 * 获取优先级
	 * @return
	 */
	public int getPriority() {
		return priority;
	}

	/**
	 * 设置优先级
	 * @param priority
	 */
	public void setPriority(int priority) {
		this.priority = priority;
	}

	/**
	 * 获取条目
	 * @return
	 */
	public Group<PaymentEntry> getPayments() {
		return payments;
	}
	
}
